/**
 * 
 */
package com.fox.webapp.service;

import java.util.List;

import org.bson.types.ObjectId;

import com.fox.webapp.domain.Broker;
import com.fox.webapp.domain.Policy;

/**
 * @author yockii
 *
 */
public interface IBrokerService {

	List<Broker> getAllActivedBroker();

	Broker addNewBroker(Broker broker);

	boolean updateBroker(Broker broker);

	boolean deleteBroker(Broker broker);

	List<Broker> getAllBrokers();

	Policy addNewPolicy(Policy policy, String brokerId);

	List<Policy> getAllPolicy(ObjectId brokerId);

	Policy updatePolicy(Policy policy);

	Broker getBroker(String id);
}
